package com.link.base.base.appduty.dao.mybatis.mapper;

import com.link.base.base.appduty.model.AppMenu;
import com.link.base.base.appduty.model.AppQuickSetVO;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.model.CallParam;

import java.util.List;

/**
 * @author history update 18.11.07
 */
public interface AppMenuMapper extends BasicMapper<AppMenu> {

    /**
     * <p>查询未添加到职责的菜单</p>
     *
     * @author yrf
     * @param qps
     * @return List
     */
    public List<AppMenu> queryUnSelectMenuListPage(AppMenu qps);

    /**
     * 获取000账套下所有菜单数据
     * @param record
     * @return List
     * @throws Exception
     */
    public List<AppMenu> queryCorpAppMenu(CallParam record) throws Exception;

    /**
     * 批量增加app菜单数据
     * @param appMenuList
     * @throws Exception
     */
    public void insertAppMenuList(List<AppMenu> appMenuList) throws Exception;

    /**
     * 获取当前职责已分配的菜单数据
     *
     * @author 李莹
     * @date 2020/07/16 05:43
     */
    public List<AppMenu> querySelectMenuListPage(AppMenu record) throws Exception;

    /**
     * 查询一级菜单及对应的二级菜单列表
     *
     * @author 李莹
     * @date 2020/07/17 10:17
     */
    List<AppQuickSetVO> queryParentAndSubMenuList(AppMenu record) throws Exception;

    List<AppMenu> queryUserMenus(Long appRole, Long corpId);
}
